#ifndef __GAME_H__
#define __GAME_H__


#include "Predefine.h"
#include "System/NDSPad.h"
#include "System/Random.h"
#include "Graphic/Device.h"

class CPad;
class CGame
{
public:

public:
	void ClearKeyPress();
	bool IsAnyKeyPressed();
	bool IsKeyPressed(int nKeyCode);
	bool IsKeyHold(int nKeyCode);
	bool IsKeyReleased(int nKeyCode);	
	
	bool							m_bPaused;	
	int								m_nCheatType;
	bool							m_bCheatOpen;	
	

public:
public:
	void InitializeDevice();
	CDevice *						m_pDevice;
	CRandom							m_Random;
	CPad* 							m_pPad;


public:
	virtual void OnGameExit(){};
	void OnKeyClick(int nKeyCode, bool bDown);
	void OnDestroy();
	void OnInitialize();	
	void OnMainLoop();

	void Pause();
	void Resume();

public:
	static CGame * GetGame();
	CGame();
	virtual ~CGame();

};

#endif //__GAME_H__
